package xyz.labmem.base.sys.module.menu.mapper

import org.apache.ibatis.annotations.Delete
import org.apache.ibatis.annotations.Select
import org.springframework.stereotype.Repository
import xyz.labmem.base.sys.module.menu.entity.SysUserMenus
import xyz.labmem.main.modular.common.mapper.AppBaseMapper

@Repository
interface SysUserMenusMapper: AppBaseMapper<SysUserMenus> {
    @Select("select user_id,menu_id from sys_user_menus where user_id=#{userId}")
    fun selectListAll(userId: String?): List<SysUserMenus>

    @Delete("delete from sys_user_menus where user_id=#{userId}")
    fun deleteUserRole(userId: String): Int
}